package com.zhoug.chart3demo;

import android.app.Application;

import androidx.core.content.ContextCompat;

/**
 * @Author: zhoug
 * @Date: 2024-01-30
 * @Description:
 */
public class Colors {
    public static int COLOR_DARK_BLUE;
    public static int COLOR_BLUE;
    public static int COLOR_LIGHT_BLUE;
    public static int COLOR_CYAN;
    public static int COLOR_MINT_GREEN;
    public static int COLOR_WHEAT_GREEN;
    public static int COLOR_GREEN;
    public static int COLOR_FLUORESCENT_GREEN;
    public static int COLOR_GRASS_GREEN;
    public static int COLOR_YELLOW_GREEN;
    public static int COLOR_SOIL;
    public static int COLOR_LIGHT_YELLOW;
    public static int COLOR_DEEP_PURPLE;
    public static int COLOR_LAVENDER;
    public static int COLOR_PURPLE;
    public static int COLOR_PURPLE_BLUE;
    public static int COLOR_YELLOW;
    public static int COLOR_ORANGE;
    public static int COLOR_RED;
    public static int COLOR_BLUE_GREEN;
    public static int COLOR_OTHER;

    /**
     * 色卡
     */
    public static int[] ColorLists;


    public static void init(Application application) {
        COLOR_DARK_BLUE = ContextCompat.getColor(application, R.color.COLOR_DARK_BLUE);
        COLOR_BLUE = ContextCompat.getColor(application, R.color.COLOR_BLUE);
        COLOR_LIGHT_BLUE = ContextCompat.getColor(application, R.color.COLOR_LIGHT_BLUE);
        COLOR_CYAN = ContextCompat.getColor(application, R.color.COLOR_CYAN);
        COLOR_MINT_GREEN = ContextCompat.getColor(application, R.color.COLOR_MINT_GREEN);
        COLOR_WHEAT_GREEN = ContextCompat.getColor(application, R.color.COLOR_WHEAT_GREEN);
        COLOR_GREEN = ContextCompat.getColor(application, R.color.COLOR_GREEN);
        COLOR_FLUORESCENT_GREEN = ContextCompat.getColor(application, R.color.COLOR_FLUORESCENT_GREEN);
        COLOR_GRASS_GREEN = ContextCompat.getColor(application, R.color.COLOR_GRASS_GREEN);
        COLOR_YELLOW_GREEN = ContextCompat.getColor(application, R.color.COLOR_YELLOW_GREEN);
        COLOR_SOIL = ContextCompat.getColor(application, R.color.COLOR_SOIL);
        COLOR_LIGHT_YELLOW = ContextCompat.getColor(application, R.color.COLOR_LIGHT_YELLOW);
        COLOR_DEEP_PURPLE = ContextCompat.getColor(application, R.color.COLOR_DEEP_PURPLE);
        COLOR_LAVENDER = ContextCompat.getColor(application, R.color.COLOR_LAVENDER);
        COLOR_PURPLE = ContextCompat.getColor(application, R.color.COLOR_PURPLE);
        COLOR_PURPLE_BLUE = ContextCompat.getColor(application, R.color.COLOR_PURPLE_BLUE);
        COLOR_YELLOW = ContextCompat.getColor(application, R.color.COLOR_YELLOW);
        COLOR_ORANGE = ContextCompat.getColor(application, R.color.COLOR_ORANGE);
        COLOR_RED = ContextCompat.getColor(application, R.color.COLOR_RED);
        COLOR_BLUE_GREEN = ContextCompat.getColor(application, R.color.COLOR_BLUE_GREEN);
        COLOR_OTHER = ContextCompat.getColor(application, R.color.COLOR_OTHER);

        ColorLists = new int[]{
                COLOR_DARK_BLUE, COLOR_BLUE, COLOR_LIGHT_BLUE, COLOR_CYAN, COLOR_MINT_GREEN, COLOR_WHEAT_GREEN, COLOR_GREEN
                , COLOR_FLUORESCENT_GREEN, COLOR_GRASS_GREEN, COLOR_YELLOW_GREEN, COLOR_SOIL, COLOR_LIGHT_YELLOW, COLOR_DEEP_PURPLE,
                COLOR_LAVENDER, COLOR_PURPLE, COLOR_PURPLE_BLUE, COLOR_YELLOW, COLOR_ORANGE, COLOR_RED,COLOR_BLUE_GREEN
        };
    }

}
